<div class="nav-setting">
    <div class="ui buttons">
        <div class="ui floating dropdown button">
            <i class="icon bars"></i>
            <div class="menu">
                <% if (user) { %>
                <a class="item" href="/posts?author=<%= user._id %>">个人主页</a>
                <div class="divider"></div>
                <a class="item" href="/posts/create">发表文章</a>
                <a class="item" href="/table">语言维护</a>
                <a class="item" href="/email">发送邮件</a>
                <a class="item" href="/map">百度地图</a>
                <a class="item" href="/spider">爬虫github</a>
                <a class="item" href="/calendar">日历</a>
                <a class="item" href="/signout">退出登陆</a>
                <% } else { %>
                <a class="item" href="/signin">登陆</a>
                <a class="item" href="/signup">注册</a>
                <% } %>
            </div>
        </div>
    </div>
</div>
